import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'

import l_header from '@/Home/l_header'
import Home from '@/Home/Home'

import Register from '@/components/user/Register'

import login from '@/components/user/login'
import oauth from '@/components/user/oauth'
import Email from '@/components/user/Email'
import Update from '@/components/user/Update'
import qiniu from '@/components/user/qiniu'

Vue.use(Router)

export default new Router({
  mode:'history',
  routes: [
    // {
    //   path: '/',
    //   name: 'HelloWorld',
    //   component: HelloWorld
    // },

    {
      path: '/',
      name: 'Home',
      component: Home,
      children:[

        {
          path: '/login',
          name: 'login',
          component: login
        },
        {
          path: '/Register',
          name: 'Register',
          component: Register
        },


      ]
    },
    {
      path: '/l_header',
      name: 'l_header',
      component: l_header
    },
    {
      path: '/oauth/callback',
      name: 'oauth',
      component: oauth
    },
    {
      path: '/Email',
      name: 'Email',
      component: Email
    },
    {
      path: 'Update',
      name: 'Update',
      component: Update
    },
    {
      path: 'qiniu',
      name: 'qiniu',
      component: qiniu
    },

  ]
})
